<?php
namespace Home\Controller;
use Think\Controller;
use Think\Model;
class BannerController extends Controller
{
    protected function echoJson($arr)
    {//内部函数
        echo json_encode($arr);
    }
    //===========================显示医生的信息=====================================
 public function banner_lists(){
     $Pyq_banner=D('Pyq_banner');
     $result=$Pyq_banner->order('orders ASC')->select();
     foreach ($result as $key=>&$value) {
         if(!empty($value['image'])) {

             $value['image'] = "http://img.other.ivf-bb.com"."/imageBANNER/" . $value['image'];
         }
     }
     if($result){
         $this->echoJson(array('result'=>0,'info'=>$result));
     }
 }

}
